package cn.myjerry.collection;

import java.util.List;
import java.util.ArrayList;
import java.util.Date;

public class Test01 {
	public static void main(String[] args) {
		List list = new ArrayList();
		list.add("abc");
		list.add(new Date());
		list.add(new Dog());
		list.add(1234);
		System.out.println(list.size());
		System.out.println(list.isEmpty());
		/*list.remove(new Date());
		System.out.println(list.size());*/
		
		List list2 = new ArrayList();
		list2.add("cde");
		list2.add("zaq");
		
		list.addAll(list2);
		
		System.out.println(list.size());
		
		String str = (String) list.get(0);
		System.out.println(str);
		
		list.set(1, "ddd");
		list.remove(3);
		
	}
}

class Dog {}